package ooday03;

public class InterfaceDemo {
    public static void main(String[] args) {

    }
}


interface Inter{
    public abstract void show();
    void test();
}
interface Inter1 {
    public abstract void test();
}
interface Inter2 {
    void show();
}

class Aoo extends Boo{
     void show(){};
    void say(){};
}
class Coo extends Aoo implements Inter1,Inter2{
    public void test(){}
    public void show(){};
    void say(){};
}

abstract class Boo{
    abstract void say();
}




/*

interface Inter2{
    void show();
}
interface Inter1{
    void  test();
}

    public void show(){}  //重写接口的方法时必须加public
    public void test(){}
}



abstract class Boo{
    abstract void say();
}
class Coo extends Boo implements Inter1,Inter2{
    void say(){};
    public void show(){}
    public void test(){}
}







interface Inter{
    public abstract void show();

    void test();//默认为public abstract
    //void say(){}//编译错误，抽象方法不能有方法体
}*/
